package com.qing.domain;

import java.io.Serializable;
import java.sql.Timestamp;

public class News implements Serializable {
    private int newsId;
    private String newsName;
    private String newsContent;
    private Timestamp newsTime;

    public int getNewsId() {
        return newsId;
    }

    public void setNewsId(int newsId) {
        this.newsId = newsId;
    }

    public String getNewsName() {
        return newsName;
    }

    public void setNewsName(String newsName) {
        this.newsName = newsName;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public Timestamp getNewsTime() {
        return newsTime;
    }

    public void setNewsTime(Timestamp newsTime) {
        this.newsTime = newsTime;
    }

    @Override
    public String toString() {
        return "news {" +
                "newsId = " + newsId +
                ", newsName = '" + newsName + '\'' +
                ", newsContent = '" + newsContent + '\'' +
                ", newsTime = " + newsTime + "}";
    }
}
